package cn.tedu.spring.di;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class UserDao {
    @Value("root")
    private String username;
    @Value("root")
    private String password;
    @Value("jdbc:mysql://localhost:3306/tedu")
    private String url;

    @Override
    public String toString() {
        return "UserDao{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
